//package com.example.extenddemo.demo;
//
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.BeansException;
//import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
//import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
//import org.springframework.stereotype.Component;
//
//@Slf4j
//@Component
//public class TestBeanFactoryPostProcessor implements BeanFactoryPostProcessor {
//    /**
//     * 在spring在读取beanDefinition信息之后，实例化bean之前执行
//     * @param beanFactory
//     * @throws BeansException
//     */
//    @Override
//    public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
//        String[] definitionNames = beanFactory.getBeanDefinitionNames();
//        log.info("Bean对象实例化之前执行  {}",String.join(",",definitionNames));
//    }
//}
